Integrand size = 27, antiderivative size = 251 \[ \int \frac {(3+3 \sin (e+f x))^3}{(c+d \sin (e+f x))^{3/2}} \, dx=\frac {2 (c-d) \cos (e+f x) (27+27 \sin (e+f x))}{d (c+d) f \sqrt {c+d \sin (e+f x)}}-\frac {36 (2 c-d) \cos (e+f x) \sqrt {c+d \sin (e+f x)}}{d^2 (c+d) f}-\frac {36 \left (4 c^2-5 c d-3 d^2\right ) E\left (\frac {1}{2} \left (e-\frac {\pi }{2}+f x\right )|\frac {2 d}{c+d}\right ) \sqrt {c+d \sin (e+f x)}}{d^3 (c+d) f \sqrt {\frac {c+d \sin (e+f x)}{c+d}}}+\frac {36 (4 c-5 d) (c-d) \operatorname {EllipticF}\left (\frac {1}{2} \left (e-\frac {\pi }{2}+f x\right ),\frac {2 d}{c+d}\right ) \sqrt {\frac {c+d \sin (e+f x)}{c+d}}}{d^3 f \sqrt {c+d \sin (e+f x)}} \]
[Out]
Time = 0.33 (sec) , antiderivative size = 270, normalized size of antiderivative = 1.08, number of steps used = 8, number of rules used = 8, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.296, Rules used = {2841, 3047, 3102, 2831, 2742, 2740, 2734, 2732} \[ \int \frac {(3+3 \sin (e+f x))^3}{(c+d \sin (e+f x))^{3/2}} \, dx=-\frac {4 a^3 \left (4 c^2-5 c d-3 d^2\right ) \sqrt {c+d \sin (e+f x)} E\left (\frac {1}{2} \left (e+f x-\frac {\pi }{2}\right )|\frac {2 d}{c+d}\right )}{3 d^3 f (c+d) \sqrt {\frac {c+d \sin (e+f x)}{c+d}}}+\frac {4 a^3 (4 c-5 d) (c-d) \sqrt {\frac {c+d \sin (e+f x)}{c+d}} \operatorname {EllipticF}\left (\frac {1}{2} \left (e+f x-\frac {\pi }{2}\right ),\frac {2 d}{c+d}\right )}{3 d^3 f \sqrt {c+d \sin (e+f x)}}-\frac {4 a^3 (2 c-d) \cos (e+f x) \sqrt {c+d \sin (e+f x)}}{3 d^2 f (c+d)}+\frac {2 (c-d) \cos (e+f x) \left (a^3 \sin (e+f x)+a^3\right )}{d f (c+d) \sqrt {c+d \sin (e+f x)}} \]
[In]
[Out]
Rule 2732
Rule 2734
Rule 2740
Rule 2742
Rule 2831
Rule 2841
Rule 3047
Rule 3102
Rubi steps \begin{align*} \text {integral}& = \frac {2 (c-d) \cos (e+f x) \left (a^3+a^3 \sin (e+f x)\right )}{d (c+d) f \sqrt {c+d \sin (e+f x)}}-\frac {(2 a) \int \frac {(a+a \sin (e+f x)) (a (c-2 d)-a (2 c-d) \sin (e+f x))}{\sqrt {c+d \sin (e+f x)}} \, dx}{d (c+d)} \\ & = \frac {2 (c-d) \cos (e+f x) \left (a^3+a^3 \sin (e+f x)\right )}{d (c+d) f \sqrt {c+d \sin (e+f x)}}-\frac {(2 a) \int \frac {a^2 (c-2 d)+\left (a^2 (c-2 d)-a^2 (2 c-d)\right ) \sin (e+f x)-a^2 (2 c-d) \sin ^2(e+f x)}{\sqrt {c+d \sin (e+f x)}} \, dx}{d (c+d)} \\ & = \frac {2 (c-d) \cos (e+f x) \left (a^3+a^3 \sin (e+f x)\right )}{d (c+d) f \sqrt {c+d \sin (e+f x)}}-\frac {4 a^3 (2 c-d) \cos (e+f x) \sqrt {c+d \sin (e+f x)}}{3 d^2 (c+d) f}-\frac {(4 a) \int \frac {\frac {1}{2} a^2 (c-5 d) d+\frac {1}{2} a^2 \left (4 c^2-5 c d-3 d^2\right ) \sin (e+f x)}{\sqrt {c+d \sin (e+f x)}} \, dx}{3 d^2 (c+d)} \\ & = \frac {2 (c-d) \cos (e+f x) \left (a^3+a^3 \sin (e+f x)\right )}{d (c+d) f \sqrt {c+d \sin (e+f x)}}-\frac {4 a^3 (2 c-d) \cos (e+f x) \sqrt {c+d \sin (e+f x)}}{3 d^2 (c+d) f}+\frac {\left (2 a^3 (4 c-5 d) (c-d)\right ) \int \frac {1}{\sqrt {c+d \sin (e+f x)}} \, dx}{3 d^3}-\frac {\left (2 a^3 \left (4 c^2-5 c d-3 d^2\right )\right ) \int \sqrt {c+d \sin (e+f x)} \, dx}{3 d^3 (c+d)} \\ & = \frac {2 (c-d) \cos (e+f x) \left (a^3+a^3 \sin (e+f x)\right )}{d (c+d) f \sqrt {c+d \sin (e+f x)}}-\frac {4 a^3 (2 c-d) \cos (e+f x) \sqrt {c+d \sin (e+f x)}}{3 d^2 (c+d) f}-\frac {\left (2 a^3 \left (4 c^2-5 c d-3 d^2\right ) \sqrt {c+d \sin (e+f x)}\right ) \int \sqrt {\frac {c}{c+d}+\frac {d \sin (e+f x)}{c+d}} \, dx}{3 d^3 (c+d) \sqrt {\frac {c+d \sin (e+f x)}{c+d}}}+\frac {\left (2 a^3 (4 c-5 d) (c-d) \sqrt {\frac {c+d \sin (e+f x)}{c+d}}\right ) \int \frac {1}{\sqrt {\frac {c}{c+d}+\frac {d \sin (e+f x)}{c+d}}} \, dx}{3 d^3 \sqrt {c+d \sin (e+f x)}} \\ & = \frac {2 (c-d) \cos (e+f x) \left (a^3+a^3 \sin (e+f x)\right )}{d (c+d) f \sqrt {c+d \sin (e+f x)}}-\frac {4 a^3 (2 c-d) \cos (e+f x) \sqrt {c+d \sin (e+f x)}}{3 d^2 (c+d) f}-\frac {4 a^3 \left (4 c^2-5 c d-3 d^2\right ) E\left (\frac {1}{2} \left (e-\frac {\pi }{2}+f x\right )|\frac {2 d}{c+d}\right ) \sqrt {c+d \sin (e+f x)}}{3 d^3 (c+d) f \sqrt {\frac {c+d \sin (e+f x)}{c+d}}}+\frac {4 a^3 (4 c-5 d) (c-d) \operatorname {EllipticF}\left (\frac {1}{2} \left (e-\frac {\pi }{2}+f x\right ),\frac {2 d}{c+d}\right ) \sqrt {\frac {c+d \sin (e+f x)}{c+d}}}{3 d^3 f \sqrt {c+d \sin (e+f x)}} \\ \end{align*}
Time = 0.73 (sec) , antiderivative size = 197, normalized size of antiderivative = 0.78 \[ \int \frac {(3+3 \sin (e+f x))^3}{(c+d \sin (e+f x))^{3/2}} \, dx=\frac {9 \left (4 \left (4 c^3-c^2 d-8 c d^2-3 d^3\right ) E\left (\frac {1}{4} (-2 e+\pi -2 f x)|\frac {2 d}{c+d}\right ) \sqrt {\frac {c+d \sin (e+f x)}{c+d}}-4 \left (4 c^3-5 c^2 d-4 c d^2+5 d^3\right ) \operatorname {EllipticF}\left (\frac {1}{4} (-2 e+\pi -2 f x),\frac {2 d}{c+d}\right ) \sqrt {\frac {c+d \sin (e+f x)}{c+d}}-2 d \cos (e+f x) \left (4 c^2-5 c d+3 d^2+d (c+d) \sin (e+f x)\right )\right )}{d^3 (c+d) f \sqrt {c+d \sin (e+f x)}} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. \(1030\) vs. \(2(318)=636\).
Time = 5.80 (sec) , antiderivative size = 1031, normalized size of antiderivative = 4.11
method | result | size |
default | \(\text {Expression too large to display}\) | \(1031\) |
parts | \(\text {Expression too large to display}\) | \(2575\) |
[In]
[Out]
Result contains higher order function than in optimal. Order 9 vs. order 4.
Time = 0.14 (sec) , antiderivative size = 786, normalized size of antiderivative = 3.13 \[ \int \frac {(3+3 \sin (e+f x))^3}{(c+d \sin (e+f x))^{3/2}} \, dx=\frac {2 \, {\left ({\left (\sqrt {2} {\left (8 \, a^{3} c^{3} d - 10 \, a^{3} c^{2} d^{2} - 9 \, a^{3} c d^{3} + 15 \, a^{3} d^{4}\right )} \sin \left (f x + e\right ) + \sqrt {2} {\left (8 \, a^{3} c^{4} - 10 \, a^{3} c^{3} d - 9 \, a^{3} c^{2} d^{2} + 15 \, a^{3} c d^{3}\right )}\right )} \sqrt {i \, d} {\rm weierstrassPInverse}\left (-\frac {4 \, {\left (4 \, c^{2} - 3 \, d^{2}\right )}}{3 \, d^{2}}, -\frac {8 \, {\left (8 i \, c^{3} - 9 i \, c d^{2}\right )}}{27 \, d^{3}}, \frac {3 \, d \cos \left (f x + e\right ) - 3 i \, d \sin \left (f x + e\right ) - 2 i \, c}{3 \, d}\right ) + {\left (\sqrt {2} {\left (8 \, a^{3} c^{3} d - 10 \, a^{3} c^{2} d^{2} - 9 \, a^{3} c d^{3} + 15 \, a^{3} d^{4}\right )} \sin \left (f x + e\right ) + \sqrt {2} {\left (8 \, a^{3} c^{4} - 10 \, a^{3} c^{3} d - 9 \, a^{3} c^{2} d^{2} + 15 \, a^{3} c d^{3}\right )}\right )} \sqrt {-i \, d} {\rm weierstrassPInverse}\left (-\frac {4 \, {\left (4 \, c^{2} - 3 \, d^{2}\right )}}{3 \, d^{2}}, -\frac {8 \, {\left (-8 i \, c^{3} + 9 i \, c d^{2}\right )}}{27 \, d^{3}}, \frac {3 \, d \cos \left (f x + e\right ) + 3 i \, d \sin \left (f x + e\right ) + 2 i \, c}{3 \, d}\right ) - 3 \, {\left (\sqrt {2} {\left (-4 i \, a^{3} c^{2} d^{2} + 5 i \, a^{3} c d^{3} + 3 i \, a^{3} d^{4}\right )} \sin \left (f x + e\right ) + \sqrt {2} {\left (-4 i \, a^{3} c^{3} d + 5 i \, a^{3} c^{2} d^{2} + 3 i \, a^{3} c d^{3}\right )}\right )} \sqrt {i \, d} {\rm weierstrassZeta}\left (-\frac {4 \, {\left (4 \, c^{2} - 3 \, d^{2}\right )}}{3 \, d^{2}}, -\frac {8 \, {\left (8 i \, c^{3} - 9 i \, c d^{2}\right )}}{27 \, d^{3}}, {\rm weierstrassPInverse}\left (-\frac {4 \, {\left (4 \, c^{2} - 3 \, d^{2}\right )}}{3 \, d^{2}}, -\frac {8 \, {\left (8 i \, c^{3} - 9 i \, c d^{2}\right )}}{27 \, d^{3}}, \frac {3 \, d \cos \left (f x + e\right ) - 3 i \, d \sin \left (f x + e\right ) - 2 i \, c}{3 \, d}\right )\right ) - 3 \, {\left (\sqrt {2} {\left (4 i \, a^{3} c^{2} d^{2} - 5 i \, a^{3} c d^{3} - 3 i \, a^{3} d^{4}\right )} \sin \left (f x + e\right ) + \sqrt {2} {\left (4 i \, a^{3} c^{3} d - 5 i \, a^{3} c^{2} d^{2} - 3 i \, a^{3} c d^{3}\right )}\right )} \sqrt {-i \, d} {\rm weierstrassZeta}\left (-\frac {4 \, {\left (4 \, c^{2} - 3 \, d^{2}\right )}}{3 \, d^{2}}, -\frac {8 \, {\left (-8 i \, c^{3} + 9 i \, c d^{2}\right )}}{27 \, d^{3}}, {\rm weierstrassPInverse}\left (-\frac {4 \, {\left (4 \, c^{2} - 3 \, d^{2}\right )}}{3 \, d^{2}}, -\frac {8 \, {\left (-8 i \, c^{3} + 9 i \, c d^{2}\right )}}{27 \, d^{3}}, \frac {3 \, d \cos \left (f x + e\right ) + 3 i \, d \sin \left (f x + e\right ) + 2 i \, c}{3 \, d}\right )\right ) - 3 \, {\left ({\left (a^{3} c d^{3} + a^{3} d^{4}\right )} \cos \left (f x + e\right ) \sin \left (f x + e\right ) + {\left (4 \, a^{3} c^{2} d^{2} - 5 \, a^{3} c d^{3} + 3 \, a^{3} d^{4}\right )} \cos \left (f x + e\right )\right )} \sqrt {d \sin \left (f x + e\right ) + c}\right )}}{9 \, {\left ({\left (c d^{5} + d^{6}\right )} f \sin \left (f x + e\right ) + {\left (c^{2} d^{4} + c d^{5}\right )} f\right )}} \]
[In]
[Out]
Timed out. \[ \int \frac {(3+3 \sin (e+f x))^3}{(c+d \sin (e+f x))^{3/2}} \, dx=\text {Timed out} \]
[In]
[Out]
\[ \int \frac {(3+3 \sin (e+f x))^3}{(c+d \sin (e+f x))^{3/2}} \, dx=\int { \frac {{\left (a \sin \left (f x + e\right ) + a\right )}^{3}}{{\left (d \sin \left (f x + e\right ) + c\right )}^{\frac {3}{2}}} \,d x } \]
[In]
[Out]
\[ \int \frac {(3+3 \sin (e+f x))^3}{(c+d \sin (e+f x))^{3/2}} \, dx=\int { \frac {{\left (a \sin \left (f x + e\right ) + a\right )}^{3}}{{\left (d \sin \left (f x + e\right ) + c\right )}^{\frac {3}{2}}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {(3+3 \sin (e+f x))^3}{(c+d \sin (e+f x))^{3/2}} \, dx=\int \frac {{\left (a+a\,\sin \left (e+f\,x\right )\right )}^3}{{\left (c+d\,\sin \left (e+f\,x\right )\right )}^{3/2}} \,d x \]
[In]
[Out]